package com.pcbly.web.persistence.table;

import java.util.List;

import com.pcbly.web.bean.table.ColumnBean;
import com.pcbly.web.persistence.BaseDao;

public interface ColumnDao extends BaseDao<ColumnBean> {

	List<ColumnBean> getColumnBeansByTableId(String tableId) throws Exception;

	void saveColumnBean(ColumnBean bean) throws Exception;

	void updateColumnBean(ColumnBean bean) throws Exception;

	void deleteColumnBeansById(String id) throws Exception;

	void deleteColumnBeans(List<ColumnBean> beans) throws Exception;

	void saveColumnBeans(List<ColumnBean> beans) throws Exception;

	void updateColumnBeans(List<ColumnBean> beans) throws Exception;

	List<ColumnBean> findColumnBeansBytableIds(String tableIds)
			throws Exception;

	List<ColumnBean> findColumnBeansFromDatabase(String tableName)
			throws Exception;

	boolean checkName(String name) throws Exception;

	void createTableExtention(String tableName) throws Exception;
	
	List<ColumnBean> findColumnBeansByTableName(String tableName)throws Exception;
}
